<?php
$this->breadcrumbs=array(
	'Browse Cafés'=>array('listAll'),
	$model->name,
);

$this->addSidebarWidget('HotshotInfoPortlet',array('model'=>$model,'voted'=>$voted,'voteOn'=>$voteOn,'votePeriod'=>$votePeriod),
Controller::SIDEBAR_TOP);
?>

<h1>Coffee Shop - <?php echo $model->name; ?></h1>
<?php if(Yii::app()->user->hasFlash('vote')){ ?>

<div class="flash-success"><?php echo Yii::app()->user->getFlash('vote'); ?>
</div>

<?php } ?>
<div class="rc_main">
<div class="hotshot_detail hotshot_datalist">
<div class="extra_info"><?php if($model->isHotshot()){?>
<div class="hotshotbox"></div>
<?php } ?> <?php if($model->isTop100()){?>
<div class="top100box"></div>
<?php } ?>
</div>

<div class="hotshot_content">
<h2><?php echo CHtml::encode($model->name);?><span class="mcr_id">ID: <?php echo $model->getVoteId();?></span></h2>
<?php if(!empty($model->phone)) {
	?>
<p><label>Phone:</label><span><?php echo $model->phone ; ?></span></p>
	<?php
} ?>
<p><label>Address:</label><span><?php echo $model->street; ?><br />
<?php echo $model->suburb; ?> <?php echo $model->city; ?> <?php echo $model->state; ?> <?php echo $model->postcode; ?> <?php echo $model->country; ?></span></p>
</div>
<?php
if(!empty($model->images)){
	?>
<div class="hotshot_img"><?php
$image=$model->images[0];
echo CHtml::image(Yii::app()->baseUrl.$image->filePath,CHtml::encode($image->title),array('width'=>'512'));
?></div>
<?php
}?> <?php
if($model->showReview){
	?>
<div class="hotshot_review"><?php echo nl2br($model->review);?></div>
	<?php
}
?> <?php
if($model->isHotshot()){
	?><?php
$address=$model->street.', '.$model->suburb.' '.$model->state.' '.$model->postcode.' '.$model->country;
$mapContent=<<<EOF
<div class="gmap_details">
<h3>{$model->name}</h3>
<p><span>{$model->street}<br />{$model->suburb} {$model->state} {$model->postcode} {$model->country}</span></p>
</div>
EOF;
Yii::app()->google->map('hotshot_gmap',$address,array(),$mapContent);

?>
<?php
}
?></div>
<!-- hotshot_detail --></div>


